package com.lijin.study.designpattern.decoration;

import com.lijin.study.designpattern.common.func.ILogger;
import com.lijin.study.designpattern.common.model.Message;

public class HTMLLogger extends LoggerDecoration {

	public HTMLLogger(ILogger logger) {
		super(logger);
	}

	@Override
	public void log(Message message) {
		System.out.println("format message to html...");
		message.setTitle(message.getTitle() + "-html");
		logger.log(message);
	}

}
